package com.huawang.mdesign.model.service.constant.cancreatetags;

import com.huawang.business.constants.DiagramConstants;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;

//@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class CustomizationDiagramConstants {

    public static final Map<String, String> FINAL_TAGS;

    // 私有构造函数，防止外部实例化,lombok,sonr不过
    private CustomizationDiagramConstants() {
    }


    static {
        Map<String, String> customizationTags = new HashMap<>();
        // 1.在此拓展右键新建视图分组
        // 2.合并customizationTags以及baseTags
        FINAL_TAGS = Stream.concat(customizationTags.entrySet().stream(), DiagramConstants.TAGS.entrySet().stream())
                .collect(Collectors.toMap(
                        Map.Entry::getKey,
                        Map.Entry::getValue,
                        (k, v) -> k));
    }
}
